{{ $href       := .href }}
{{ $titleAttr  := .title  | default "" }}
{{ $className  := .class  | default "bi fs-4" }}
{{ $widthAttr  := .width  | default "16" }}
{{ $heightAttr := .height | default "16" }}

{{ $class  := printf " class=%q"  $className  | safeHTMLAttr }}
{{ $width  := printf " width=%s"  $widthAttr  | safeHTMLAttr }}
{{ $height := printf " height=%s" $heightAttr | safeHTMLAttr }}

{{ $title := "" }}
{{ with $titleAttr}}
    {{ $title = partial "functions/area_element_style/base/title" (dict "text" $titleAttr) }}
{{ end }}

{{ $use := partial "functions/area_element_style/base/use" (dict "href" $href) }}


{{ $svg := printf "<svg%s%s%s>%s%s</svg>" $class $width $height $title $use | safeHTML }}
{{ return $svg }}